home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Sample.bin / KhakiMetalTheme.java < prev    next >
Text File  |  1998-06-30  |  2KB  |  55 lines

  1. /* 
  2.  * @(#)KhakiMetalTheme.java    1.1 98/03/10
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21.  
  22. import com.sun.java.swing.plaf.*;
  23. import com.sun.java.swing.plaf.metal.*;
  24. import com.sun.java.swing.*;
  25. import com.sun.java.swing.border.*;
  26. import java.awt.*;
  27.  
  28. /**
  29.  * This class describes a theme using "khaki" colors.
  30.  *
  31.  * @version 1.1 03/10/98
  32.  * @author Steve Wilson
  33.  */
  34. public class KhakiMetalTheme extends DefaultMetalTheme {
  35.  
  36.     public String getName() { return "Sandstone"; }
  37.  
  38.     private final ColorUIResource primary1 = new ColorUIResource( 87,  87,  47);
  39.     private final ColorUIResource primary2 = new ColorUIResource(159, 151, 111);
  40.     private final ColorUIResource primary3 = new ColorUIResource(199, 183, 143);
  41.  
  42.     private final ColorUIResource secondary1 = new ColorUIResource( 111,  111,  111);
  43.     private final ColorUIResource secondary2 = new ColorUIResource(159, 159, 159);
  44.     private final ColorUIResource secondary3 = new ColorUIResource(231, 215, 183);
  45.  
  46.     protected ColorUIResource getPrimary1() { return primary1; }  
  47.     protected ColorUIResource getPrimary2() { return primary2; } 
  48.     protected ColorUIResource getPrimary3() { return primary3; } 
  49.  
  50.     protected ColorUIResource getSecondary1() { return secondary1; }
  51.     protected ColorUIResource getSecondary2() { return secondary2; }
  52.     protected ColorUIResource getSecondary3() { return secondary3; }
  53.  
  54. }
  55.